package com.ruyiadmin.springboot.entity_data_model.data_transformation_model.system_model;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 机构用户树DTO模型
 *
 * @author RuYiAdmin
 * @since 2022-08-05
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class OrgUserTreeDTO {
    @ApiModelProperty("编号")
    private String id;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("类型，1，机构，2，用户")
    private int type;

    @ApiModelProperty("序号")
    private int serialNumber;

    @ApiModelProperty("子集")
    private List<OrgUserTreeDTO> children;
}
